package ua.com.stormlabs.tiny.licenseserver.controllers;

/**
 */
public enum DataTableRequestParam {

    RECORDS_FROM("iDisplayStart"),
    RECORDS_PAGE_SIZE("iDisplayLength"),
    FILER_QUERY("sSearch"),
    SORT_COLUMN_INDEX("iSortCol_0"),
    SORT_COLUMN_INDEX_PREFIX("iSortCol_"),
    SORT_COLUMN_NAME_PREFIX("mDataProp_"),
    SORT_COLUMNS_COUNT("iSortingCols"),
    SORT_DIRECTION("sSortDir_0"),
    SORT_DIRECTION_PREFIX("sSortDir_"),
    SORT_COLUMN_PARAM("mDataProp"),

    REQUEST_VERSION("sEcho"),

    TOTAL_RECORDS("iTotalRecords"),
    FILTERED_RECORDS("iTotalDisplayRecords"),
    RESULT_DATA("aaData");

    private final String value;

    DataTableRequestParam(String value) {
        this.value = value;
    }

    public String getValue() {
        return value;
    }
}
